//全局变量
const state = {
    collapse: false,//折叠功能
    showRTInfo: true,//显示实时数据
    bom: [],//工厂-产线-设备bom信息
    visitedPages: [],//访问过的页面，用于keep alive
}

const mutations = {
    //侧边折叠
    SET_COLLAPSE(state, collapse) {
        state.collapse = collapse
    },

    //
    SET_BOM: (state, bom) => {
        state.bom = bom;
    }
}

//调用api
const actions = {

}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}